package com.open.rmi.ex2.client;

import org.springframework.beans.factory.annotation.Autowired;

import com.open.rmi.ex2.service.PerfectTime;

public class DisplayPerfectTime {

	private PerfectTime pf;
	
	public PerfectTime getPf() {
		return pf;
	}

	// @Autowired
	public void setPf(PerfectTime pf) {
		this.pf = pf;
	}

	public void display() {
		for (int i = 0; i < 10; i++) {
			System.out.println("PerfectTime:" + pf.getPerfectTime());
		}
	}
}
